package com.iotboss.system.service;

import com.iotboss.common.core.domain.iot.IotCustom;
import com.iotboss.common.core.domain.iot.IotOrUser;
import com.iotboss.system.mapper.IotCustomMapper;
import com.iotboss.system.mapper.IotOrUserMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class IotOrUserService {
    @Autowired
    IotOrUserMapper iotOrUserMapper;
    @Autowired
    IotCustomMapper iotCustomMapper;
    public void insertOrUser(IotOrUser iotOrUser) {
        this.iotOrUserMapper.insertOrUser(iotOrUser);
    }
    //返回DeptId
    public IotCustom findIotCustom(Long id) {
        return this.iotCustomMapper.findIotCustomById(id);
    }

    public List<IotOrUser> selectIotOrUserList(Long customId) {
        return this.iotOrUserMapper.selectIotOrUserList(customId);
    }
}
